package bavaria.hightech.banking.gui;

import java.awt.Font;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

import bavaria.hightech.banking.bank.BankImpl;

/**
 * A panel that is displayed in the contentWrapper panel. This is loaded by
 * default and only displays the bank name
 * 
 * @author Dietmar
 */
public class PanelDefault {

	private BankImpl bank;

	public PanelDefault(BankImpl bank) {
		this.bank = bank;
	}

	public JPanel getJPanel() {

		JPanel panel = new JPanel();
		JLabel label = new JLabel(bank.bankName);

		label.setHorizontalAlignment(SwingConstants.CENTER);
		label.setVerticalAlignment(SwingConstants.CENTER);
		label.setFont(new Font("sansserif", Font.PLAIN, 32));
		panel.add(label);

		return panel;
	}

}
